<?php

/**
 * @author PeoneEr
 * @method sql()
 */
require_once "core/db.php";

class Mreg1 extends DB {

    /**
     * @var string $_query
     */
    private $_query;

    protected function send_register($login, $password, $email, $question, $answer, $secret) {
        /**
         * запись новой регистрации
         * @param string $login
         * @param mixed $password
         * @param email $email
         * @param string $question
         * @param string $answer
         */
        DB::getInstance()->openConnectionToLS();
        $this->_query = "INSERT INTO `account_data` (`name` , `password`, `email`, `question`, `answer`, `secret`) VALUES ('$login', '$password', '$email', '$question', '$answer', '$secret') ";
        return DB::getInstance()->sql($this->_query);
        DB::getInstance()->closeConnection();
        unset($this->_query);
    }



}

?>
